<?php
// +----------------------------------------------------------------------
// | HkCms
// +----------------------------------------------------------------------
// | Copyright (c) 2012-2019 http://www.hkcms.cn, All rights reserved.
// +----------------------------------------------------------------------
// | Author: 广州恒企教育科技有限公司 <admin@hkcms.cn>
// +----------------------------------------------------------------------

namespace app\content\validate;

use think\Validate;

class Message extends Validate
{
    protected $rule = [
        'name' => 'require',
        'phone' => 'require',
        'email' => 'email',
        'content' => 'require',
    ];

    protected $message  =   [
        'name.require' => '姓名必须填写！',
        'phone.require' => '手机号必须填写！',
        'emali.email' => '邮箱格式不正确！',
        'emali.require' => '邮箱必须填写！',       
        'content.require' => '内容必须填写！',       
    ];

}
